<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><%= @title-%></title>
		<%= javascript_include_tag :defaults%>
		<%= stylesheet_link_tag "basic.css" %>
	</head>
	<body>
		<script type="text/javascript">
			$(function(){
    			var $pathname = window.location.href;
				$('#content div.sc_menu li a').each(function(){
					var $href = $(this).attr('href');
					if( ($href== $pathname) || ($href=='') ){
						$(this).parent().addClass('current');
					}else{
						$(this).parent().removeClass('current');
					}
				});
			});
		</script>
		<div id="container">
		    <%= render :partial => "/partial/top" %>
			<div id="content">
				<div class="top_side">
                      <img src="/images/single_head_2.jpg" alt="个人中心" title="个人中心" />
					  <img src="/images/htym_flash.png" alt="flash广告" title="flash广告" />
                      <div class="sc_menu">
                          <ul>           
                              <li><%= link_to "个人主页", profile_for(@user)%></li>
                              <li><%= link_to "个人资料", proinfo_for(@user) %></li>
                              <li><%= link_to "个人需求", prorequirements_for(@user) %></li>
                              <li><%= link_to "个人好友", profriends_for(@user) %></li>
                          </ul>	
                      </div>
              	</div>
				<div class="midside">
					<%=yield%>
				</div>
				<div class="right_side">
					<% if @login_user == @user -%>
						<% unless @user.requested_friends.empty? -%>
							<div class="sidebar_box">
								<%= render :partial => "/profile/partials/friends_request" %>
							</div>		
						<% end -%>
					<% end -%>
		            <div class="sidebar_box">
		            	<% @visitors = Visitor.find_visitors(@login_user,@user) %>
		            	<%= render :partial => "/profile/partials/visitors" %>
		            </div>
		            <div class="sidebar_box">
		            	<%= render :partial => "/profile/partials/friends" %>
		            </div>
		      
					<div class="sidebar_box">
					  <div class="titlewords" >网站推荐</div>
		              <div class="suggestDesign">
						  <ul>
			                    <li><a href="#">某某公社的手机设计</a></li> 
					            <li><a href="#">简约的珠宝设计</a></li>
					            <li><a href="#">细分公司自行车设计</a></li>
								<li><a href="#">细分公司自行车设</a></li>
							    <li><a href="#">细分公司自行车设</a></li>
							    <li><a href="#">细分公司自行车设</a></li>
			              </ul>
		              </div>
		            </div>	
				</div>
			</div>
			<div id="footer">
				<ul>
				    <li><a href="#">关于分度</a></li> 
		            <li><a href="#">服务指南</a></li>
		            <li><a href="#">网站导航</a></li>
					<li><a href="#">诚聘英才</a></li>
				    <li><a href="#">战略伙伴</a></li>
				    <li><a href="#">联系我们</a></li>
				</ul>
	  		</div>
  
		  	<div id="dibu">
		  		电信经营许可证号 广告经营许可证号 工商注册登记号
		  		<br/> COPYRIGHT@2008年-2009年 FENDU . ALL RIGHTS RESERVED
		  	</div>
		</div>	
	
	</body>
</html>